package com.yunsc.media.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.common.validator.ValidationGroups;
import com.yunsc.media.entity.YunscUploadGroupEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 文件分组DTO
 * @date: 2024-04-21 1:01
 */
@ApiModel(value = "文件分组DTO")
@Data
public class FileGroupDTO {
    @ApiModelProperty(value = "分组名称")
    @NotNull(message = "分组id不能为空", groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    @JsonProperty("groupId")
    private  Integer groupId;

    @ApiModelProperty(value = "分组名称")
    private YunscUploadGroupEntity form;
}
